#coding = utf-8
from selenium import webdriver
import time
driver = webdriver.Chrome('C:/Program Files (x86)/Google/Chrome/Application/chromedriver')
url='http:www.baidu.com'

#****************打印url***********************
# print("now access is "+url)
# driver.get(url)
# time.sleep(2)
# driver.find_element_by_id("kw").send_keys("selenium")
# driver.find_element_by_id("su").click()
# time.sleep(3)
# driver.quit()

#*************把浏览器最大化*****************
# print("浏览器最大化")
# driver.maximize_window()  #将浏览器最大化
# time.sleep(2)
# driver.find_element_by_id("kw").send_keys("selenium")
# driver.find_element_by_id("su").click()
# time.sleep(3)
# driver.quit()


